<div class="layui-fluid layui-anim website-anim" id="website-indicator-detail" lay-title="评审标准详细页面">
    <div class="layui-row website-container">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-body website-table-full">
                    <form class="layui-form layui-table-form" lay-filter="standard-table-form">
                        <div class="layui-col-md12">
                            <div class="layui-form-item">
                                <div class="layui-inline layui-col-md6">
                                    <label class="website-form-item-require">名称:</label>
                                    <span>[[${indicator.name}]]</span>
                                </div>
                                <div class="layui-inline layui-col-md6">
                                    <label class="website-form-item-require">权重:</label>
                                    <span>[[${indicator.weight}]]</span>
                                </div>
                            </div>
                        </div>
                        <div class="layui-inline layui-col-md12">
                            <label class="website-form-item-require">描述:</label>
                            <span>[[${indicator.description}]]</span>
                        </div>
                        <span>&nbsp;</span>
                        <div><label>列表显示:</label></div>
                        <div class="layui-row">
                            <table lay-filter="indicatorDetailTableDetail" lay-data="{id: 'indicatorDetailTableDetail'}"></table>
                        </div>
                        <input type="hidden" id="indicatorId" data-th-value="${indicatorId}"/>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/html" id="standard-detail-option">
    <a lay-event="detail" shiro:hasPermission="standard:update"><i
            class="layui-icon website-edit-area website-blue">&#xe7a5;</i></a>
</script>
<script data-th-inline="none" type="text/javascript">

    layui.use(['jquery', 'form', 'table', 'website'], function () {
        var $ = layui.jquery,
            website = layui.website,
            form = layui.form,
            table = layui.table,
            $view = $('#website-indicator-detail'),
            tableIns,
            validate = layui.validate;
        form.verify(validate);
        initTable();
        form.render();
        table.on('sort(indicatorDetailTableDetail)', function (obj) {
            tableIns.reload({
                initSort: obj,
                where: $.extend(getQueryParams(), {
                    field: obj.field,
                    order: obj.type
                })
            });
        });
        function initTable() {
            website.get(ctx + 'indicatorDetail/listAll/'+$("#indicatorId").val(), null, function (data) {
            tableIns = website.table.init({
                elem: $view.find('table'),
                id: 'indicatorDetailTableDetail'
                ,data: data.data
                ,cols: [[
                    {type: 'numbers', title: '序号',width: '5%'},
                    {field: 'indicatorType', title: '级别', width:'10%'},
                    {field: 'questionDescription', title: '描述', width: '55%'},
                    {field: 'maxScore', title: '最大分值', width: '15%'},
                    {field: 'minScore', title: '最小分值',width: '15%'},
                ]]
                ,limit: Number.MAX_VALUE
                ,page: false
            });
            });
        }
    })
</script>